package org.jeecg.modules.core.highway.service;

import org.jeecg.modules.core.highway.entity.PassDataHighwayPic;
import org.jeecg.modules.core.highway.entity.PassDataHighway;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.core.highway.vo.PassDataHighwayPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 公路站点过磅数据表
 * @Author: jeecg-boot
 * @Date:   2021-07-21
 * @Version: V1.0
 */
public interface IPassDataHighwayService extends IService<PassDataHighway> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(PassDataHighway passDataHighway,List<PassDataHighwayPic> passDataHighwayPicList) throws Exception ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(PassDataHighway passDataHighway,List<PassDataHighwayPic> passDataHighwayPicList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	List<PassDataHighwayPage> getAllOldData(Integer start, Integer size);
}
